Ext.define('AmpleHarvest.objects.userprofile.view.Window',
{
   extend         : 'Ext.window.Window',
   requires    :
   [
      "AmpleHarvest.objects.userprofile.view.ProfileForm"
   ],
   layout         : 'fit',
   y           : 0,
   m_bool_Editable   : false,
   
   minimizable    : false,
   maximizable    : false,
   closable    : false,
   iconCls        : "menu-admin-profile-icon",
   width       : 400,
   //height      : Ext.getBody().getViewSize().height * 2/4,
   shim        : false,
   animCollapse   : false,
   title       : "My Profile",
   modal       : true,
   tools       :
   [
         {
            type  : "help",
            handler  : function()
            {
               Ext.Msg.show(
               {
                  title : "View Profile Help",
                  iconCls  : "help",
                  width : 600,
                  buttons  : Ext.Msg.OK,
                  msg      : "This contains your user information.<br/>",
                  icon  : Ext.MessageBox.QUESTION
               }
               );
            }
         }
   ],

   initComponent  : function()
   {
      this.m_str_UserName = obj_config.user.userName;
      this.m_obj_Form = Ext.create(
            "AmpleHarvest.objects.userprofile.view.ProfileForm",
            {
            	autoScroll  : true
            }
      );
      this.callParent();

      this.add(this.m_obj_Form);
   }
}
);